#include <stdio.h>
#include <string.h>
#define N 100
int main() {
    char a[N], temp;
    int i, j, len;
    printf("输入字符串：\n");
    scanf("%s", a);
    len = strlen(a);
    for (i = 0, j = len - 1; i < j; i++, j--) {
        temp = a[i];
        a[i] = a[j];
        a[j] = temp;
    }
    printf("逆转后的字符串：%s\n", a);
    return 0;
}